package org.test.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import org.test.myTree.AbstractTree.EmergencyTree;
import org.test.myTree.AbstractTree.ITreeService;

@Repository("departmentAction")
@Scope()
public class DepartmentAction extends BaseAction{

	private ITreeService treeService;// 虚拟树的服务层

	@Resource(name = "treeServiceImpl")
	public void setTreeService(ITreeService treeService) {
		this.treeService = treeService;
	}

	private EmergencyTree emergencyTree;

	public EmergencyTree getEmergencyTree() {
		return treeService.queryEmergencyTree();
	}

	public void setEmergencyTree(EmergencyTree emergencyTree) {
		this.emergencyTree = emergencyTree;
	}

}
